<?php 
class Helpers {
/*
 * 
 */
	public static function yiiCss($params){
		if(!empty($params)) {
			if(is_array($params)){
					foreach($params as $value){
					echo '<link rel="stylesheet" type="text/css" media="all" href="'.Yii::app()->request->baseUrl.'/'.$value.'" />';
				}
			}
			else {
				echo '<link rel="stylesheet" type="text/css" media="all" href="'.Yii::app()->request->baseUrl.'/'.$params.'" />';
			}
		}
	}
	
	public static function yiiJs($params){
		if(!empty($params)) {
			if(is_array($params)){
				foreach($params as $value){
					echo '<script type="text/javascript" src="'.Yii::app()->request->baseUrl.'/'.$value.'"></script>';
				}
			}
			else {
				echo '<script type="text/javascript" src="'.Yii::app()->request->baseUrl.'/'.$params.'"></script>';
			}
		}
	}
	
}